import { RMIProxyObject } from "./RMIProxyObject";
import { IKeepActivePrx } from "./IKeepActivePrx";
import { AMI_IKeepActive_keepActive } from "./AMI_IKeepActive_keepActive";
import { Context } from "./Context";
import { SRMICall } from "./SRMICall";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { Outgoing } from "./Outgoing";
//class IKeepActivePrxHelper

export class IKeepActivePrxHelper extends RMIProxyObject
  implements IKeepActivePrx {
  constructor() {
    
    super();this.name = "IKeepActive";
  }

  public keepActive_async(arg1: AMI_IKeepActive_keepActive): void {
    var context = new Context();
    context._session = this.session;
    context._connection = this.session.connection;
    context._timeOut = this.timeOut;
    var srmiCall = new SRMICall();
    srmiCall.identity = this.identity;
    srmiCall.operation = "keepActive";
    var stream = new SerializeStream();
    Outgoing.invokeAsync(context, srmiCall, stream, arg1);
  }

  public static /* const */ NAME: string = "Engine.RMI.IKeepActive";
}
